home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: REPOST: Newbie Question -- byte order
- Date: Wed, 06 Mar 96 15:01:48 GMT
- Organization: none
- Message-ID: <826124508snz@genesis.demon.co.uk>
- References: <4hg3u1$8d6@nnrp1.news.primenet.com> <4hjcmq$678@inet-nntp-gw-1.us.oracle.com>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <4hjcmq$678@inet-nntp-gw-1.us.oracle.com>
- wkaufman@wkaufman.us.oracle.com "William Kaufman" writes:
-
- > So, for instance, assuming sizeof(short) == 2, this program
-
- And also assuming that CHAR_BIT == 8.
-
- ...
-
- >will print "0x12 0x34" on a big-endian machine, or "0x34 0x12" on a
- >little-endian machine.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-